import request from "@/utils/request";

export default {
    getNowMovies() {
        return request({
            url: "/api/douban/now",
            method: "get",
        })
    },
    getRecentMovies() {
        return request({
            url: "/api/douban/recent",
            method: "get",
        })
    },
    getMovieDetail(id) {
        return request({
            url: `/api/douban/detail/${id}`,
            method: "get",
        })
    },
    getMovieRatting(id) {
        return request({
            url: `/api/douban/ratting/${id}`,
            method: "get",
        })
    },
    getRankList() {
        return request({
            baseURL: "./",
            url: "/json/toprank.json",
            method: "get",
        })
    }
}